package com.tensquare.user.dao;

import com.tensquare.user.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @author Alfred
 * @description TODO
 * @date 2021/4/28 18:07
 */
public interface UserDao extends JpaRepository<User,String>, JpaSpecificationExecutor<User> {

    /**
     * fetch data by rule id
     *
     * @description  根据手机号查询用户
     * @param
     * @return
     */
    public User findByMobile(String mobile);

}
